package com.zc.portal.infra.security.filter;

import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.security.core.context.SecurityContext;

import java.util.List;
import java.util.Map;

public class PreForwardFilter extends ZuulFilter {
    @Override
    public String filterType() {
        return "pre";
    }

    @Override
    public int filterOrder() {
        return 0;
    }

    @Override
    public boolean shouldFilter() {
        return true;
    }

    @Override
    public Object run() throws ZuulException {


        RequestContext context = RequestContext.getCurrentContext();
        Map<String, List<String>> queryParams = context.getRequestQueryParams();
        return null;
    }
}
